Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retrieve pagination parameters from the correct location #627

Merged
merged 4 commits into from
Aug 3, 2023

Conversation

andresuribe87
Copy link
Contributor

Overview

Fixes #626

Description

Parameters are before the URL path (i.e. before the ?). Query parameters come after.

How Has This Been Tested?

Tests were updated to fail before changes were made. And are passing after the changes were made.

@@ -31,7 +31,7 @@ const (
// execution is responded to using the passed in gin.Context. The return value corresponds to whether there was an
// error within the function.
func ParsePaginationParams(c *gin.Context, pageRequest *PageRequest) bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rename to ParsePaginationQueryValues?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 80a4239

@codecov-commenter
Copy link

codecov-commenter commented Aug 2, 2023

Codecov Report

Merging #627 (097012f) into main (68a3f82) will not change coverage.
The diff coverage is 0.00%.

@@           Coverage Diff           @@
##             main     #627   +/-   ##
=======================================
  Coverage   26.64%   26.64%           
=======================================
  Files          55       55           
  Lines        5855     5855           
=======================================
  Hits         1560     1560           
  Misses       4023     4023           
  Partials      272      272           
Files Changed Coverage Δ
pkg/server/router/did.go 3.44% <0.00%> (ø)
pkg/server/router/presentation.go 2.54% <0.00%> (ø)

@andresuribe87 andresuribe87 merged commit d0f76fc into TBD54566975:main Aug 3, 2023
6 checks passed
decentralgabe pushed a commit that referenced this pull request Aug 3, 2023
…n-endpoint

* origin/main:
  Update API Docs (#629)
  Retrieve pagination parameters from the correct location (#627)

# Conflicts:
#	doc/swagger.yaml
#	pkg/server/router/credential.go
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The pageSize and pageToken parameters are perhaps not working when calling the ListSubmissions function.
3 participants